package cn.lentme.app;

import android.app.Application;
import android.widget.Toast;

import cn.lentme.app.state.DynamicConfig;

public class App extends Application {

    // 单例模式
    private static App instance = null;

    public static App getInstance() {
        return instance;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
    }

    public void showToast(String msg) {
        Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
    }
}
